
/* <<< COPYRIGHT START >>>
 * Copyright 2006-Present OxygenSoftwareLibrary.com
 * Licensed under the GNU Lesser General Public License.
 * http://www.gnu.org/licenses/lgpl.html
 * 
 * @author: Ugorji Dick-Nwoke
 * <<< COPYRIGHT END >>>
 */


package oxygen.tool.wlfacade.plugins;

import java.util.List;

import org.python.core.PySequence;

import oxygen.jython.OxyJythonConvenienceCommands;
import oxygen.tool.facade.FacadePluginAdapter;
import oxygen.tool.wlfacade.WLFacadeContextHelper;
import oxygen.tool.wlfacade.helpers.WLDeploy;

public class UploadFiles extends FacadePluginAdapter {

  public void execute(String name, String source, List files) throws Exception {
    WLFacadeContextHelper wlctx = new WLFacadeContextHelper(ctx);
    WLDeploy.uploadfiles(wlctx, name, source, (String[])files.toArray(new String[0]));
  }
  
  public void execute(String name, String source, PySequence args) throws Exception {
    execute(name, source, OxyJythonConvenienceCommands.py2jlist(args));
  }

}

